package com.qpx.jxcupms.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.poi.hssf.record.formula.functions.T;

import javax.management.relation.Role;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mht
 * @since 2020-02-22
 */
@Data
@Accessors(chain = true)
@TableName("t_user")
public class TUser extends Model<TUser> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String bz;

    private String password;

    @TableField("true_name")
    private String trueName;

    @TableField("user_name")
    private String userName;
    private String remarks;


    private TRole tRole;

    public static void main(String[] args) {
        TMenu tMenu = new TMenu();
    }






    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public void getRole(){
        TRole tRole = new TRole();

    }

}
